package com.foreveross.compensate;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.foreveross.timer.MqPensateTimer;
import com.foreveross.util.SpringHelper;
import com.foreveross.util.cfg.ConfigContainer;
import com.foreveross.util.cfg.defaults.DefaultPropertiesLoader;

public class CompensateMain {
	private static final Logger LOG = LoggerFactory.getLogger(CompensateMain.class);
	
	public static void main(String[] args){
		
		// 配置文件注册.
		LOG.info(String.format("配置文件初始化..."));
		ConfigContainer.getInstance().register(DefaultPropertiesLoader.class);
		// System.out.println(DefaultPropertiesLoader.getClientId());

		// 初始化Spring.
		LOG.info(String.format("Spring初始化..."));
		SpringHelper.setClassPathXmlApplicationContext("spring/root.xml");
		new MqPensateTimer();
		
	}
	
}
